home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20030409-20031118
/
000283_fdc@sesame.cc.columbia.edu_Wed Sep 17 13:27:16 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2003-11-18
|
3KB
|
77 lines
Article: 14525 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news-not-for-mail
From: fdc@sesame.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: automodem?
Date: 17 Sep 2003 13:27:11 -0400
Organization: Columbia University
Lines: 60
Message-ID: <bka5hf$rhg$1@sesame.cc.columbia.edu>
References: <S5N9b.750$A67.607@newssvr22.news.prodigy.com> <bk9s60$4td$1@sesame.cc.columbia.edu> <_g0ab.916$SY5.132@newssvr22.news.prodigy.com>
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1063819631 16674 128.59.59.56 (17 Sep 2003 17:27:11 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 17 Sep 2003 17:27:11 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14525
In article <_g0ab.916$SY5.132@newssvr22.news.prodigy.com>,
Jun Zhang <nugulus@netscape.net> wrote:
: After connection, logging in, at the ckermit> prompt, I type hangup
: or quit, modem seems disconnected. These are all fine.
: Go to the remote host, I noticed that the getty process was replaced
: by -ksh during the succesfull connection, but remain like that after I
: hang up at the client. Next time I use autodial, session will hang after
: I give password.
: To further explain what I mean: before successful connection, there
: is a process (launched by inittab entry)
: root 3067 1 0 11:45:45 ttyd0p7 0:00 /usr/sbin/getty -h ttyd0p7 9600
: after the successful connection, the process becomes
: root 3067 1 0 11:45:45 ttyd0p7 0:00 -ksh
: this process will remain like it is even after the client side modem
: hangup. I have to kill it and let init to respawn, before the new
: autodial session could be successful.
: The remote host is hpux 11.00. The replacement instead of fork a
: child of the process looks weired. Before looking into that, I would
: like to know if kermit has anything to do with it.
:
No, it doesn't. A Kermit script only does the same things that you would
do by hand. It can't affect interactions between getty and ksh on the
remote host.
: To answer my last question: I have to logout during kermit CONNECT mode
: to recover that remote getty process, and you told me that.
:
: Can I put shell commands to run at remote host within the autodial
: script? For instance I need to logout.
:
Yes, of course you can put dialogs with the host in your script. Please
read the tutorial near the beginning of the C-Kermit scripts page:
http://www.columbia.edu/kermit/ckscripts.html#tut
: I tried to add
:
: if success connect
: touch /tmp/somefile
: exit
:
: at the end of autodial script, but I was given the shell prompt of the
: remote host. Probably this to embed shell script in kermit issue.
:
As the tutorial says, if you want the script to execute the dialog, then
you must replace the CONNECT command with a series of INPUT and OUTPUT
commands, so:
if success connect
touch /tmp/somefile
exit
becomes something like:
input 10 {\10$ } ; (or whatever the shell prompt is)
if fail exit 1 No shell prompt
output touch /tmp/somefile\13
output exit\13
- Frank